import request from '@/utils/request'

// 查询融资项目-基本信息列表
export function listDealBaseFinancing(query) {
  return request({
    url: '/base/dealBaseFinancing/list',
    method: 'get',
    params: query
  })
}

// 查询融资项目-基本信息详细
export function getDealBaseFinancing(id) {
  return request({
    url: '/base/dealBaseFinancing/' + id,
    method: 'get'
  })
}

// 保存融资项目-基本信息
export function saveDealBaseFinancing(data) {
  return request({
    url: '/base/dealBaseFinancing/save',
    method: 'post',
    data: data
  })
}

// 删除融资项目-基本信息
export function delDealBaseFinancing(id) {
  return request({
    url: '/base/dealBaseFinancing/' + id,
    method: 'delete'
  })
}

// 导出融资项目-基本信息
export function exportDealBaseFinancing(query) {
  return request({
    url: '/base/dealBaseFinancing/export',
    method: 'get',
    params: query
  })
}

// 删除档位明细
export function delDealBaseFinancingGear(id) {
  return request({
    url: '/base/dealBaseFinancingGear/' + id,
    method: 'delete'
  })
}

// 删除募集明细
export function delDealBaseFinancingRaise(id) {
  return request({
    url: '/base/dealBaseFinancingRaise/' + id,
    method: 'delete'
  })
}

// 计算利率
export function interestRateCalculation(data) {
  return request({
    url: '/base/dealBaseFinancing/interestRateCalculation',
    method: 'post',
    data: data
  })
}
